package com.cus.shd.sharingjdbc.utils;

import org.apache.calcite.avatica.util.DateTimeUtils;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author ASUS
 * @Description TODO
 * @Date 2021/11/7 9:12
 **/
public class RandomUtils {

    public static String getRandomNo(String pre,Integer num){
        int randomLength = num - pre.length();
        StringBuilder randomNum = new StringBuilder();
        randomNum.append(pre);
        while (randomLength > 0){
            randomNum.append((int)(Math.random() * 10));
            randomLength--;
        }
        return randomNum.toString();
    }
}
